<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ms-container has-ms-sidemenu">

    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">驾驶员报销信息</li>
    </ol>

    <div class="ms-content-layout" style="width: 100%; overflow-x: scroll;">
      <table class="table table-hover ms-table" style="min-width: 4200px;">
        <thead>
          <tr>
            <th>驳运车号</th>
            <th>派车单号</th>
            <th>调度指令组号</th>
            <th>主驾姓名</th>
            <th>第一副驾姓名</th>
            <th>报销日期</th>
            <th>报销单号</th>
            <th>起始装卸地</th>
            <th>目的装卸地</th>
            <th>商品车数量</th>
            <th style="width: 500px;">商品车明细</th>
            <th>行驶公里数</th>
            <th>路桥费</th>
            <th>外部油费</th>
            <th>内部加油贴现</th>
            <th>交通费（夜进夜出）</th>
            <th>广告费</th>
            <th>短驳补贴</th>
            <th>提车费用</th>
            <th>交车费用</th>
            <th>冬季油差补贴</th>
            <th>通讯费补贴</th>
            <th>延伸公里数</th>
            <th>多点装车补贴</th>
            <th>多点卸车补贴</th>
            <th>银行取款手续费</th>
            <th>高速补贴</th>
            <th>停车补贴</th>
            <th>带车补贴</th>
            <th>其他费用</th>
            <th>油价补贴</th>
            <th>油耗补贴</th>
            <th>洗车费</th>
            <th>住宿补贴</th>
            <th>摆渡费</th>
            <th>轮胎补贴（冻结）</th>
            <th>副驾带车费用</th>
            <th>线路包干费</th>
            <th>制单人</th>
            <th>报销人</th>
          </tr>
        </thead>
        
        <tbody>
          <c:forEach var="result" items="${result}">
            <tr>
              <td>${result.vehicle}</td>
              <td>${result.dispatchOrderCode}</td>
              <td>${result.shipmentGroupId}</td>
              <td>${result.mainDriver}</td>
              <td>${result.firstViceDriver}</td>
              <td><fmt:formatDate value="${result.expenseReimburseDate}" pattern="yyyy-MM-dd" /></td>
              <td>${result.reimburseCode}</td>
              <td>${result.srcFacility}</td>
              <td>${result.descFacility}</td>
              <td>${result.loadNumber}</td>
              <td style="width: 400px;">${result.carSummary}</td>
              <td>${result.facilityDistance}</td>
              <td>${result.roadFee}</td>
              <td>${result.externalOilFee}</td>
              <td>${result.internalOilFeeCompensation}</td>
              <td>${result.otherFee1}</td>
              <td>${result.otherFee2}</td>
              <td>${result.otherFee3}</td>
              <td>${result.otherFee4}</td>
              <td>${result.otherFee5}</td>
              <td>${result.otherFee6}</td>
              <td>${result.otherFee7}</td>
              <td>${result.otherFee8}</td>
              <td>${result.otherFee9}</td>
              <td>${result.otherFee10}</td>
              <td>${result.otherFee11}</td>
              <td>${result.otherFee12}</td>
              <td>${result.otherFee13}</td>
              <td>${result.otherFee14}</td>
              <td>${result.otherFee15}</td>
              <td>${result.otherFee16}</td>
              <td>${result.otherFee17}</td>
              <td>${result.otherFee18}</td>
              <td>${result.otherFee19}</td>
              <td>${result.otherFee20}</td>
              <td>${result.otherFee21}</td>
              <td>${result.otherFee22}</td>
              <td>${result.otherFee23}</td>
              <td>${result.lastModifyUser}</td>
              <td>${result.reimburseUser}</td>
            </tr>  
          </c:forEach>
        </tbody>

        <tfoot>
          <tr>
            <td colspan="40" class="no-vertical-padding">
              <div class="pull-left">
                <jsp:include page="/WEB-INF/include/page.jsp">
                  <jsp:param name="url" value="${ctx.host}/reports" />
                  <jsp:param name="queryString" value="${queryString}" />
                </jsp:include>
              </div>
              
              <div class="pull-right">
                <c:if test="${page.totals > 0}">
                  <a href="${ctx.host}/reports/driver-cost-export?${queryString}&per_page=${config.everyPage}&page=${page.currentPage}" class="btn btn-default ms-export">输出当前记录</a>
                  <a href="${ctx.host}/reports/driver-cost-export?${queryString}&per_page=${config.limit}&page=1" class="btn btn-default ms-export">输出所有记录</a>
                </c:if>
              </div>
            </td>
          </tr>
        </tfoot>
      </table>

    </div>
  </div>
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  
  
</body>
</html>